package com.own.component.common.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * UploadModel
 *
 * @author chenxueli
 * @date 2024-01-18 15:28:39
 */
@Schema(title = "文件导入导出类")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder(builderClassName = "Builder")
public class UploadModel implements Serializable {

    @Schema(title = "文件名称")
    private String fileName;

    @Schema(title = "文件原名称")
    private String fileOldName;

    @Schema(title = "文件地址（相对路径）")
    private String filePath;

    @Schema(title = "文件位置")
    private String filePosition;

    @Schema(title = "文件类型")
    private String fileType;

    @Schema(title = "文件大小（字节）")
    private Long fileSize;

    @Schema(title = "文件的md5值")
    private String fileMd5;

    @Schema(title = "其他文件，有转换的情况下放的是新文件的路径")
    private String others;

    @Schema(title = "转换状态")
    private Integer convert;

    @Schema(title = "转换之后的文件id")
    private String convertId;

}
